package com.ahwei.order.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * <p>
 * 这是一个Java文件！
 * </p>
 *
 * @author： ahWei
 * @email：ahwei163@qq.com
 * @since： 2022-05-26 15:34:56
 * @EnableDiscoveryClient//把微服务自动注册到nacos服务器中
 * Feign是一个声明式的伪Http客户端，可以把请求伪装成类似SpringMVC的Controller。你不用再自己拼接URL，拼接参数
 */
@Configuration
@EnableDiscoveryClient
@EnableFeignClients({ "com.ahwei.product.api.feign" })
@MapperScan(basePackages = {"com.ahwei.**.mapper"})
public class OrderConfiguration implements WebMvcConfigurer {

}
